KERNELDIR ?= ~/WDC250GBHD/tiny4412/linux-3.5 
PWD := $(shell pwd)

DEBUG = y
ifeq ($(DEBUG), y)
	DEBFLAGS = -O -g -DSCULLPIPE_DEBUG
else
	DEBFLAGS = -O2
endif

EXTRA_CFLAGS += $(DEBFLAGS)

#scullpipe-objs := scullpipe.o
obj-m := scullpipe.o

modules:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:
	rm -fr *.o *.ko *.mod.c  *.order *.symvers .*.cmd .tmp_versions
